package com.xk.order.enums;

/**
 * 订单状态中的枚举
 */
public enum OrderStatusEnum {

    UN_PAY(1, "未付款"),
    PAUED(2,"已付款，未发货"),
    DELIVERED(3,"已发货，未确认"),
    SUCCESS(4,"已确认,未评价"),
    CLOSED(5,"已关闭，交易失败"),
    PATED(6,"已评价"),
    ;
    private int code;//状态
    private String desc;//描述

    OrderStatusEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }
    //获状态码
    public int value(){
        return this.code;
    }
}
